#pragma once

#include "imglib/imageclass_decl.h"

namespace refine {

namespace despill {

struct params {
	int whs;
	bool mimicry;
	float max_condition_number; // > 1
	//loads default values
	params() {
		whs = 1;
		mimicry = true;
		max_condition_number = 5;
	}
};

extern params const default_params;

/// changes color of pixels with alpha != 0 && alpha != 255
/// on the reconstructed color of foreground
void perform(byte_image & im, params const & p = params());
void perform(argb_byte_image & im, params const & p = params());

} //namespace despill

} //namespace refine
